<template>
  <div>
    <h1 @click="back">桃李不言下自成蹊</h1>
    <router-link to="user/1">toUser</router-link>
    &nbsp;&nbsp;&nbsp;&nbsp;
    <router-link to="userDetails/1">toUserDetails</router-link>
    <router-view></router-view>
  </div>
</template>
<script setup>
import {useRouter} from "vue-router";

const router = useRouter();
const back = function () {
  router.back();
}
</script>
<script>
export default {
  name: "Index",
}
</script>

<style scoped>

</style>